/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dp.vo;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author wyr
 */
@Entity
@Table(name = "t_auditcontents")
//@NamedQueries({@NamedQuery(name = "TAuditcontents.findAll", query = "SELECT t FROM TAuditcontents t"), @NamedQuery(name = "TAuditcontents.findById", query = "SELECT t FROM TAuditcontents t WHERE t.id = :id"), @NamedQuery(name = "TAuditcontents.findByContentid", query = "SELECT t FROM TAuditcontents t WHERE t.contentid = :contentid"), @NamedQuery(name = "TAuditcontents.findByGenreId", query = "SELECT t FROM TAuditcontents t WHERE t.genreId = :genreId"), @NamedQuery(name = "TAuditcontents.findByServiceCode", query = "SELECT t FROM TAuditcontents t WHERE t.serviceCode = :serviceCode"), @NamedQuery(name = "TAuditcontents.findByUserId", query = "SELECT t FROM TAuditcontents t WHERE t.userId = :userId"), @NamedQuery(name = "TAuditcontents.findByContentName", query = "SELECT t FROM TAuditcontents t WHERE t.contentName = :contentName"), @NamedQuery(name = "TAuditcontents.findByContentKeyword", query = "SELECT t FROM TAuditcontents t WHERE t.contentKeyword = :contentKeyword"), @NamedQuery(name = "TAuditcontents.findByContentPubdate", query = "SELECT t FROM TAuditcontents t WHERE t.contentPubdate = :contentPubdate"), @NamedQuery(name = "TAuditcontents.findByContentDuration", query = "SELECT t FROM TAuditcontents t WHERE t.contentDuration = :contentDuration"), @NamedQuery(name = "TAuditcontents.findByContenInfo", query = "SELECT t FROM TAuditcontents t WHERE t.contenInfo = :contenInfo"), @NamedQuery(name = "TAuditcontents.findByContentType", query = "SELECT t FROM TAuditcontents t WHERE t.contentType = :contentType"), @NamedQuery(name = "TAuditcontents.findByContentUpdateddate", query = "SELECT t FROM TAuditcontents t WHERE t.contentUpdateddate = :contentUpdateddate"), @NamedQuery(name = "TAuditcontents.findByCopyrightdeadline", query = "SELECT t FROM TAuditcontents t WHERE t.copyrightdeadline = :copyrightdeadline"), @NamedQuery(name = "TAuditcontents.findByContentStatus", query = "SELECT t FROM TAuditcontents t WHERE t.contentStatus = :contentStatus"), @NamedQuery(name = "TAuditcontents.findByTestStatus", query = "SELECT t FROM TAuditcontents t WHERE t.testStatus = :testStatus"), @NamedQuery(name = "TAuditcontents.findByAudituser", query = "SELECT t FROM TAuditcontents t WHERE t.audituser = :audituser"), @NamedQuery(name = "TAuditcontents.findByPubCompany", query = "SELECT t FROM TAuditcontents t WHERE t.pubCompany = :pubCompany"), @NamedQuery(name = "TAuditcontents.findByArea", query = "SELECT t FROM TAuditcontents t WHERE t.area = :area"), @NamedQuery(name = "TAuditcontents.findByLastserviceCode", query = "SELECT t FROM TAuditcontents t WHERE t.lastserviceCode = :lastserviceCode"), @NamedQuery(name = "TAuditcontents.findByOrdered", query = "SELECT t FROM TAuditcontents t WHERE t.ordered = :ordered"), @NamedQuery(name = "TAuditcontents.findByCause", query = "SELECT t FROM TAuditcontents t WHERE t.cause = :cause"), @NamedQuery(name = "TAuditcontents.findByContentCode", query = "SELECT t FROM TAuditcontents t WHERE t.contentCode = :contentCode")})
public class TAuditcontents implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "id")
    private Integer id;
    @Basic(optional = false)
    @Column(name = "contentid")
    private String contentid;
    @Column(name = "genre_id")
    private String genreId;
    @Basic(optional = false)
    @Column(name = "service_code")
    private String serviceCode;
    @Basic(optional = false)
    @Column(name = "user_id")
    private String userId;
    @Basic(optional = false)
    @Column(name = "content_name")
    private String contentName;
    @Column(name = "content_keyword")
    private String contentKeyword;
    @Column(name = "content_pubdate")
    @Temporal(TemporalType.TIMESTAMP)
    private Date contentPubdate;
    @Column(name = "content_duration")
    private Integer contentDuration;
    @Column(name = "conten_info")
    private String contenInfo;
    @Basic(optional = false)
    @Column(name = "content_type")
    private String contentType;
    @Column(name = "content_updateddate")
    @Temporal(TemporalType.TIMESTAMP)
    private Date contentUpdateddate;
    @Column(name = "Copyright_deadline")
    @Temporal(TemporalType.TIMESTAMP)
    private Date copyrightdeadline;
    @Basic(optional = false)
    @Column(name = "content_status")
    private String contentStatus;
    @Column(name = "test_status")
    private String testStatus;
    @Column(name = "audituser")
    private String audituser;
    @Column(name = "pub_company")
    private String pubCompany;
    @Column(name = "area")
    private String area;
    @Column(name = "lastservice_code")
    private String lastserviceCode;
    @Column(name = "ordered")
    private Integer ordered;
    @Column(name = "cause")
    private String cause;
    @Column(name = "content_code")
    private String contentCode;

    public TAuditcontents() {
    }

    public TAuditcontents(Integer id) {
        this.id = id;
    }

    public TAuditcontents(Integer id, String contentid, String serviceCode, String userId, String contentName, String contentType, String contentStatus) {
        this.id = id;
        this.contentid = contentid;
        this.serviceCode = serviceCode;
        this.userId = userId;
        this.contentName = contentName;
        this.contentType = contentType;
        this.contentStatus = contentStatus;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getContentid() {
        return contentid;
    }

    public void setContentid(String contentid) {
        this.contentid = contentid;
    }

    public String getGenreId() {
        return genreId;
    }

    public void setGenreId(String genreId) {
        this.genreId = genreId;
    }

    public String getServiceCode() {
        return serviceCode;
    }

    public void setServiceCode(String serviceCode) {
        this.serviceCode = serviceCode;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getContentName() {
        return contentName;
    }

    public void setContentName(String contentName) {
        this.contentName = contentName;
    }

    public String getContentKeyword() {
        return contentKeyword;
    }

    public void setContentKeyword(String contentKeyword) {
        this.contentKeyword = contentKeyword;
    }

    public Date getContentPubdate() {
        return contentPubdate;
    }

    public void setContentPubdate(Date contentPubdate) {
        this.contentPubdate = contentPubdate;
    }

    public Integer getContentDuration() {
        return contentDuration;
    }

    public void setContentDuration(Integer contentDuration) {
        this.contentDuration = contentDuration;
    }

    public String getContenInfo() {
        return contenInfo;
    }

    public void setContenInfo(String contenInfo) {
        this.contenInfo = contenInfo;
    }

    public String getContentType() {
        return contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }

    public Date getContentUpdateddate() {
        return contentUpdateddate;
    }

    public void setContentUpdateddate(Date contentUpdateddate) {
        this.contentUpdateddate = contentUpdateddate;
    }

    public Date getCopyrightdeadline() {
        return copyrightdeadline;
    }

    public void setCopyrightdeadline(Date copyrightdeadline) {
        this.copyrightdeadline = copyrightdeadline;
    }

    public String getContentStatus() {
        return contentStatus;
    }

    public void setContentStatus(String contentStatus) {
        this.contentStatus = contentStatus;
    }

    public String getTestStatus() {
        return testStatus;
    }

    public void setTestStatus(String testStatus) {
        this.testStatus = testStatus;
    }

    public String getAudituser() {
        return audituser;
    }

    public void setAudituser(String audituser) {
        this.audituser = audituser;
    }

    public String getPubCompany() {
        return pubCompany;
    }

    public void setPubCompany(String pubCompany) {
        this.pubCompany = pubCompany;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getLastserviceCode() {
        return lastserviceCode;
    }

    public void setLastserviceCode(String lastserviceCode) {
        this.lastserviceCode = lastserviceCode;
    }

    public Integer getOrdered() {
        return ordered;
    }

    public void setOrdered(Integer ordered) {
        this.ordered = ordered;
    }

    public String getCause() {
        return cause;
    }

    public void setCause(String cause) {
        this.cause = cause;
    }

    public String getContentCode() {
        return contentCode;
    }

    public void setContentCode(String contentCode) {
        this.contentCode = contentCode;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TAuditcontents)) {
            return false;
        }
        TAuditcontents other = (TAuditcontents) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.dp.vo.TAuditcontents[id=" + id + "]";
    }

}
